QT       += core gui
QT       += network
QT       += concurrent
QT       += websockets
QT       += sql

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    addcontactform.cpp \
    addcontactitem.cpp \
    addorcreatecontactdialog.cpp \
    backgroundthread.cpp \
    chatdialog.cpp \
    chatinputtextedit.cpp \
    chatlistitem.cpp \
    chatservice.cpp \
    customizewidget.cpp \
    global.cpp \
    httpmgr.cpp \
    listitembase.cpp \
    main.cpp \
    logindialog.cpp \
    mainwindow.cpp \
    messageListItem/customlabel.cpp \
    messageListItem/messagefriendlistitem.cpp \
    messageListItem/messagetimelistitem.cpp \
    messageListItem/messageuserlistitem.cpp \
    myqlistwidget.cpp \
    mytitlebar.cpp \
    registerdialog.cpp \
    resetpassworddialog.cpp \
    searchlineedit.cpp \
    slidingverificationdialog.cpp \
    switchkeydialog.cpp \
    userdata.cpp \
    utils.cpp \
    verifycode.cpp

HEADERS += \
    addcontactform.h \
    addcontactitem.h \
    addorcreatecontactdialog.h \
    backgroundthread.h \
    chatdialog.h \
    chatinputtextedit.h \
    chatlistitem.h \
    chatservice.h \
    customizewidget.h \
    global.h \
    httpmgr.h \
    listitembase.h \
    logindialog.h \
    mainwindow.h \
    messageListItem/customlabel.h \
    messageListItem/messagefriendlistitem.h \
    messageListItem/messagetimelistitem.h \
    messageListItem/messageuserlistitem.h \
    myqlistwidget.h \
    mytitlebar.h \
    registerdialog.h \
    resetpassworddialog.h \
    searchlineedit.h \
    singleton.h \
    slidingverificationdialog.h \
    switchkeydialog.h \
    userdata.h \
    utils.h \
    verifycode.h

FORMS += \
    addcontactform.ui \
    addcontactitem.ui \
    addorcreatecontactdialog.ui \
    chatdialog.ui \
    chatlistitem.ui \
    logindialog.ui \
    mainwindow.ui \
    messageListItem/messagefriendlistitem.ui \
    messageListItem/messagetimelistitem.ui \
    messageListItem/messageuserlistitem.ui \
    registerdialog.ui \
    resetpassworddialog.ui \
    slidingverificationdialog.ui \
    switchkeydialog.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    res.qrc
